package com.vp.org.service.impl;

import com.vp.org.dao.impl.BookDaoImpl;
import com.vp.org.pojo.BookInfo;
import com.vp.org.pojo.Collect;
import com.vp.org.service.BookService;

import java.util.List;
import java.util.Map;

public class BookServiceImpl extends BookDaoImpl implements BookService {


    @Override
    public List<BookInfo> findByHot() {
        return queryByHot();
    }

    @Override
    public List<BookInfo> findByCondition(BookInfo info) {
        return queryByCondition(info);
    }

    @Override
    public List<BookInfo> findByDiscount() {
        return queryByDiscount();
    }

    @Override
    public BookInfo findById(int id) {
        return queryById(id);
    }

    @Override
    public List<Map<String, Object>> findForRemark(int id) {
        return queryRemarkById(id);
    }

    @Override
    public BookInfo findByName(String name) {
        return queryByName(name + "%");
    }
}
